package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 产线运行记录对象 sys_client_data
 * 
 * @author spark
 * @date 2023-08-19
 */
public class SysClientData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long dataId;

    /** 产线ID */
    @Excel(name = "产线ID")
    private Long workLineId;

    /** 车间ID */
    @Excel(name = "车间ID")
    private Long roomId;

    /** 工厂ID */
    @Excel(name = "工厂ID")
    private Long factoryId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 产线状态 */
    @Excel(name = "产线状态")
    private String dataState;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date dataStartTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date dataEndTime;

    /** 持续时间 */
    @Excel(name = "持续时间")
    private Integer durationTime;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 终端ID */
    @Excel(name = "终端ID")
    private Long clientId;

    /** 序列号 */
    @Excel(name = "序列号")
    private String seqId;

    /** 部门ID */
    @Excel(name = "部门ID")
    private Long deptId;

    @Excel(name = "终端名称")
    private String clientName;

    @Excel(name = "车间名称")
    private String roomName;

    @Excel(name = "工厂名称")
    private String factoryName;

    @Excel(name = "产线名称")
    private String lineName;

    private String lineCode;

    public String getLineCode() {
        return lineCode;
    }

    public void setLineCode(String lineCode) {
        this.lineCode = lineCode;
    }

    public String getSeqId() {
        return seqId;
    }

    public void setSeqId(String seqId) {
        this.seqId = seqId;
    }

    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }

    public String getClientName() {
        return clientName;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }

    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public String getFactoryName() {
        return factoryName;
    }

    public void setFactoryName(String factoryName) {
        this.factoryName = factoryName;
    }

    public String getLineName() {
        return lineName;
    }

    public void setLineName(String lineName) {
        this.lineName = lineName;
    }

    public void setDataId(Long dataId)
    {
        this.dataId = dataId;
    }

    public Long getDataId() 
    {
        return dataId;
    }
    public void setWorkLineId(Long workLineId) 
    {
        this.workLineId = workLineId;
    }

    public Long getWorkLineId() 
    {
        return workLineId;
    }
    public void setRoomId(Long roomId) 
    {
        this.roomId = roomId;
    }

    public Long getRoomId() 
    {
        return roomId;
    }
    public void setFactoryId(Long factoryId) 
    {
        this.factoryId = factoryId;
    }

    public Long getFactoryId() 
    {
        return factoryId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setDataState(String dataState) 
    {
        this.dataState = dataState;
    }

    public String getDataState() 
    {
        return dataState;
    }
    public void setDataStartTime(Date dataStartTime) 
    {
        this.dataStartTime = dataStartTime;
    }

    public Date getDataStartTime() 
    {
        return dataStartTime;
    }
    public void setDataEndTime(Date dataEndTime) 
    {
        this.dataEndTime = dataEndTime;
    }

    public Date getDataEndTime() 
    {
        return dataEndTime;
    }
    public void setDurationTime(Integer durationTime) 
    {
        this.durationTime = durationTime;
    }

    public Integer getDurationTime() 
    {
        return durationTime;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setClientId(Long clientId) 
    {
        this.clientId = clientId;
    }

    public Long getClientId() 
    {
        return clientId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dataId", getDataId())
            .append("workLineId", getWorkLineId())
            .append("roomId", getRoomId())
            .append("factoryId", getFactoryId())
            .append("userId", getUserId())
            .append("dataState", getDataState())
            .append("dataStartTime", getDataStartTime())
            .append("dataEndTime", getDataEndTime())
            .append("durationTime", getDurationTime())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("clientId", getClientId())
            .append("seqId", getSeqId())
            .append("deptId", getDeptId())
            .toString();
    }
}
